package com.yz.mcd.view;


import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;

import com.yz.mcd.R;

/**
 * Created by XYLi on 2017/3/31.
 */

public class StartLoadingActivity extends AppCompatActivity {
    Runnable runnable=new Runnable(){//新建一个线程
        @Override
        public void run() {
            Intent intent=new Intent(StartLoadingActivity.this,Ac_login.class);
            startActivity(intent);//开始跳转
            finish();
        }
    };

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.startloading_activity);
        init();
    }

    private void init() {
        Handler handler = new Handler();
        handler.postDelayed(runnable, 1500);//等待1.5秒之后执行跳转，这个数值可以自己修改。
    }
}
